package com.space.aspect.controller;

import com.space.aspect.anno.SysLog;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: TestController
 * @Description: 测试Controller
 * @Author ZhouZhiXin
 * @Date 2022/7/6
 * @Version 1.0
 */
@Slf4j
@RestController
public class TestController {

    @SysLog("测试")
    @GetMapping("/test")
    public String test(@RequestParam("name") String name){
        log.info("test");
        return name;
    }
}